<!DOCTYPE html>
<html lang="en">
<head>
  <meta name="viewport"
        content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
  <meta charset="UTF-8">
  <title>供应商</title>
  <link rel="stylesheet" href="/layui2/css/layui.css">
  <link rel="stylesheet" href="/css/public.css">
</head>
<body class="layui-layout-body" onload="loadProvider()">
<div class="layui-layout layui-layout-admin">
  <div class="layui-header">
    <div class="layui-logo">超市管理系统</div>
    <ul class="layui-nav layui-layout-right">
      <li class="layui-nav-item">
        <a href="javascript:void(0);">q</a>
<!--        <dl class="layui-nav-child">-->
<!--          <dd><a href="javascript:void(0)">基本资料</a></dd>-->
<!--          <dd><a href="javascript:void(0)">安全设置</a></dd>-->
<!--        </dl>-->
      </li>
      <li class="layui-nav-item"><a href="javascript:void(0)" onclick="urlArray.logout()">退出登录</a></li>
    </ul>
  </div>
  <div class="layui-side layui-bg-black">
    <div class="layui-side-scroll">
      <ul class="layui-nav layui-nav-tree" lay-filter="test">
        <li class="layui-nav-item layui-nav-itemed">
          <a href="javascript:void(0);" onclick="urlArray.provider()">供应商管理</a>
        </li>
        <li class="layui-nav-item">
          <a href="javascript:void(0);">商品管理</a>
          <dl class="layui-nav-child">
            <dd><a href="javascript:void(0)" onclick="urlArray.type()">商品种类管理</a></dd>
            <dd><a href="javascript:void(0)" onclick="urlArray.info()">商品信息管理</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item">
          <a href="javascript:void(0);" onclick="urlArray.warehouse()">库存管理</a>
        </li>
        <li class="layui-nav-item">
          <a href="javascript:void(0);" onclick="urlArray.order()">订单管理</a>
        </li>
      </ul>
    </div>
  </div>
  <div class="layui-body">
    <div class="title">供应商信息管理</div>
    <div class="table-container">
      <table class="layui-hide" id="provider" lay-filter="provider"></table>
      <script type="text/html" id="provider-toolbar">
        <button class="layui-btn layui-btn-primary layui-input-radius" lay-event="add">添加</button>
        <button class="layui-btn layui-btn-primary layui-input-radius" lay-event="del">批量删除</button>
        <input type="text" id="search" class="layui-input layui-input-radius" placeholder="请输入供应商名称" title="">
        <button class="layui-btn layui-btn-primary layui-input-radius" lay-event="search">搜索</button>
      </script>
      <script type="text/html" id="provider-tool">
        <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">查看</a>
        <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
      </script>
      <div id="provider-page"></div>
    </div>
  </div>
</div>
<section id="add-provider-layout">
  <div class="layout-background display-none" onclick="hideLayout($('#add-provider-layout'))"></div>
  <div class="layout-box display-none">
    <form action="javascript:void(0)" class="layui-form">
      <div class="layout-header">
        <span class="layout-title">添加供应商</span>
        <span class="layout-close" onclick="hideLayout($('#add-provider-layout'))">+</span>
      </div>
      <div class="layout-container">
        <div class="layui-form-item">
          <label class="layui-form-label">供应商名称</label>
          <div class="layui-input-block">
            <input type="text" name="name" required lay-verify="required" placeholder="请输入供应商名称"
                   autocomplete="off" class="layui-input" title="">
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">联系人名称</label>
          <div class="layui-input-block">
            <input type="text" name="contact" required lay-verify="required" placeholder="请输入联系人名称"
                   autocomplete="off" class="layui-input" title="">
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">联系电话</label>
          <div class="layui-input-block">
            <input type="text" name="phone" required lay-verify="required" placeholder="请输入联系电话"
                   autocomplete="off" class="layui-input" title="">
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">联系地址</label>
          <div class="layui-input-block">
            <input type="text" name="address" required lay-verify="required" placeholder="请输入联系地址"
                   autocomplete="off" class="layui-input" title="">
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">备注</label>
          <div class="layui-input-block">
            <input type="text" name="intro" placeholder="备注" autocomplete="off" class="layui-input" title="">
          </div>
        </div>
        <div class="layui-form-item display-none">
          <label class="layui-form-label"></label>
          <div class="layui-input-block">
            <input type="text" name="operator" autocomplete="off" class="layui-input" title="">
          </div>
        </div>
      </div>
      <div class="layout-footer">
        <button class="layui-btn layui-btn-radius" lay-submit lay-filter="add">添加</button>
        <button class="layui-btn layui-btn-primary layui-btn-radius"
                onclick="hideLayout($('#add-provider-layout'))">取消
        </button>
      </div>
    </form>
  </div>
</section>
<section id="detail-provider-layout">
  <div class="layout-background display-none" onclick="hideLayout($('#detail-provider-layout'))"></div>
  <div class="layout-box display-none">
    <form class="layui-form" action="javascript:void(0)">
      <div class="layout-header">
        <span class="layout-title">供应商【<span></span>】详细信息</span>
        <span class="layout-close" onclick="hideLayout($('#detail-provider-layout'))">+</span>
      </div>
      <div class="layout-container">
        <div class="detail-col">
          <div class="layui-form-item">
            <label class="layui-form-label">供应商ID</label>
            <div class="layui-input-block">
              <input type="text" name="id" required lay-verify="required" placeholder="该信息暂无" title=""
                     autocomplete="off" class="layui-input" readonly="readonly">
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label">供应商名称</label>
            <div class="layui-input-block">
              <input type="text" name="name" required lay-verify="required" placeholder="该信息暂无" title=""
                     autocomplete="off" class="layui-input" readonly="readonly">
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label">供应商联系人</label>
            <div class="layui-input-block">
              <input type="text" name="contact" required lay-verify="required" placeholder="该信息暂无" title=""
                     autocomplete="off" class="layui-input" readonly="readonly">
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label">供应商联系电话</label>
            <div class="layui-input-block">
              <input type="text" name="phone" required lay-verify="required" placeholder="该信息暂无" title=""
                     autocomplete="off" class="layui-input" readonly="readonly">
            </div>
          </div>
        </div>
        <div class="detail-col">
          <div class="layui-form-item">
            <label class="layui-form-label">联系地址</label>
            <div class="layui-input-block">
              <input type="text" name="address" required lay-verify="required" placeholder="该信息暂无" title=""
                     autocomplete="off" class="layui-input" readonly="readonly">
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label">开始合作时间</label>
            <div class="layui-input-block">
              <input type="text" name="ctime" required lay-verify="required" placeholder="该信息暂无" title=""
                     autocomplete="off" class="layui-input" readonly="readonly">
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label">信息最近更新时间</label>
            <div class="layui-input-block">
              <input type="text" name="utime" required lay-verify="required" placeholder="该信息暂无" title=""
                     autocomplete="off" class="layui-input" readonly="readonly">
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
              <input type="text" name="intro" placeholder="该信息暂无" title="" readonly="readonly"
                     autocomplete="off" class="layui-input">
            </div>
          </div>
        </div>
        <div class="layui-clear"></div>
      </div>
      <div class="layout-footer">
        <button class="layui-btn layui-input-radius" lay-submit lay-filter="edit">修改</button>
        <button class="layui-btn layui-btn-primary layui-input-radius"
                onclick="hideLayout($('#detail-provider-layout'))">
          取消
        </button>
      </div>
    </form>
  </div>
</section>
<section id="edit-provider-layout">
  <div class="layout-background display-none" onclick="hideLayout($('#edit-provider-layout'))"></div>
  <div class="layout-box display-none">
    <form class="layui-form" action="javascript:void(0)">
      <div class="layout-header">
        <span class="layout-title">供应商【<span></span>】详细信息</span>
        <span class="layout-close" onclick="hideLayout($('#edit-provider-layout'))">+</span>
      </div>
      <div class="layout-container">
        <div class="layui-form-item display-none">
          <label class="layui-form-label">供应商ID</label>
          <div class="layui-input-block">
            <input type="text" name="id" required lay-verify="required" placeholder="该信息暂无" title=""
                   autocomplete="off" class="layui-input" readonly="readonly">
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">供应商名称</label>
          <div class="layui-input-block">
            <input type="text" name="name" required lay-verify="required" placeholder="该信息暂无" title=""
                   autocomplete="off" class="layui-input">
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">供应商联系人</label>
          <div class="layui-input-block">
            <input type="text" name="contact" required lay-verify="required" placeholder="该信息暂无" title=""
                   autocomplete="off" class="layui-input">
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">供应商联系电话</label>
          <div class="layui-input-block">
            <input type="text" name="phone" required lay-verify="required" placeholder="该信息暂无" title=""
                   autocomplete="off" class="layui-input">
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">联系地址</label>
          <div class="layui-input-block">
            <input type="text" name="address" required lay-verify="required" placeholder="该信息暂无" title=""
                   autocomplete="off" class="layui-input">
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">备注</label>
          <div class="layui-input-block">
            <input type="text" name="intro" placeholder="该信息暂无" title=""
                   autocomplete="off" class="layui-input">
          </div>
        </div>
      </div>
      <div class="layout-footer">
        <button class="layui-btn layui-input-radius" lay-submit lay-filter="edit">修改</button>
        <button class="layui-btn layui-btn-primary layui-input-radius"
                onclick="hideLayout($('#edit-provider-layout'))">
          取消
        </button>
      </div>
    </form>
  </div>
</section>
<footer>
  <script src="/js/jquery.min.js"></script>
  <script src="/layui2/layui.js"></script>
  <script src="/js/public.js"></script>
  <script src="/js/provider.js"></script>
</footer>
</body>
</html>